package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Swapping_With_Third_Variable {

	public static void main(String[] args) {
		
	System.out.println("Enter two number for swapping");
	Scanner sc=new Scanner(System.in);
	
	int a=sc.nextInt();
	int b=sc.nextInt();
	
	int temp;
	
	System.out.println("Before swapping the numbers are"+" "+a +" "+b);
	

	temp=a;
	a=b;
	b=temp;
		
	System.out.println("After swapping the numbers are"+" "+a +" "+b);	
	
	}

}
